<%@ Control Inherits="CVCommunity.Admin.Subject" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>

<form runat="server">
<div class="grid">
<table cellspacing="0" class="inner">
<tr class="forumno category">
<td>专题管理</td>
</tr>
<tr class="forumtd">
<td><a href="?action=board&operation=list">&rsaquo;&rsaquo;&nbsp;版面列表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="?action=subject">&rsaquo;&rsaquo;&nbsp;所有专题</a></td>
</tr>
</table>
</div>
<asp:Panel ID="list" runat="server">
<div class="grid">
<table cellspacing="0" class="inner">
<tr bgcolor="#FFFFFF" class="forumno" style="font-size:12px;">
<td width='100'>操作</td>
<td width='150'>专题名称</td>
<td>描述</td>
<td width='200'>所属版面</td>
</tr>
<asp:Repeater enableviewstate='false' id='subjectlist' runat='server'>
<ItemTemplate>
<tr class="forumtd" style="font-size:12px;">
<td><forum:Anchor id="alter" style="color:#AC4E0F" text="修改޸" runat="server" />
|
<forum:Anchor id="remove" class="t1" text="删除" runat="server" onclick="return confirm('删除后将不能恢复，确定要删除吗？');" /></td>
<td><forum:Span id="name" runat="server" /></td>
<td><forum:Span id="desc" runat="server" />&nbsp;</td>
<td><forum:Span id="boardname" runat="server" /></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div class="grid">
<table cellspacing="0" class="inner">
<tr bgcolor="#FFFFFF" class="forumno" style="font-size:12px;">
<td colspan="2"><strong>添加主题</strong></td>
</tr>
<tr class="forumtd">
<td width="200">专题名称</td>
<td><asp:TextBox ID="Name" runat="server" />
*
<asp:RequiredFieldValidator
		  		 ControlToValidate="Name"
				 ErrorMessage="必须填写专题名称" 
				 EnableClientScript="true" 
				 runat="server" /></td>
</tr>
<tr class="forumtd">
<td>描述</td>
<td><asp:TextBox ID="Desc" Width="300" runat="server" /></td>
</tr>
<tr class="forumtd">
<td>所属版面</td>
<td><asp:DropDownList ID="Boards" runat="server"/></td>
</tr>
<tr class="forumtd">
<td colspan="4" align="center"><asp:Button Text=" 提交 " CssClass="button"  OnClick="Add" runat="server" />
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="ModifyPanel" Visible="false" runat="server">
<div class="grid">
<table cellspacing="0" class="inner">
<tr bgcolor="#FFFFFF" class="forumno" style="font-size:12px;">
<td colspan="2"><strong>编辑主题</strong></td>
</tr>
<tr class="forumtd">
<td width="200">专题名称</td>
<td><asp:TextBox ID="ModifyName" runat="server" />
*
<asp:RequiredFieldValidator
		  		 ControlToValidate="ModifyName"
				 ErrorMessage="必须填写专题名称" 
				 EnableClientScript="true" 
				 runat="server" /></td>
</tr>
<tr class="forumtd">
<td>描述</td>
<td><asp:TextBox ID="ModifyDesc" Width="300" runat="server" /></td>
</tr>
<tr class="forumtd">
<td colspan="4" align="center"><asp:Button Text=" 修改 " CssClass="button"  OnClick="Modify" runat="server" />
<input type="button" value=" 取消 " class="button" onclick="history.back();" />
</td>
</tr>
</table>
</div>
</asp:Panel>
</div>
</form>